/*    */ package com.yss.sofa.cml.design;
/*    */ 
/*    */ import com.yss.sofa.cml.CellElement;
/*    */ import com.yss.sofa.cml.StampElement;
/*    */ import com.yss.sofa.cml.geom.Shape;
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ 
/*    */ public abstract class BaseCellElement extends BaseBoxElement
/*    */   implements CellElement
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/*    */   protected int rowspan;
/*    */   protected int colspan;
/*    */   protected StampElement stampElement;
/*    */   protected List<Shape> shapeList;
/*    */   protected Shape[] shapes;
/*    */ 
/*    */   public int getRowspan()
/*    */   {
/* 22 */     return this.rowspan;
/*    */   }
/*    */ 
/*    */   public int getColspan()
/*    */   {
/* 27 */     return this.colspan;
/*    */   }
/*    */ 
/*    */   public void setRowspan(int rowspan) {
/* 31 */     this.rowspan = rowspan;
/*    */   }
/*    */ 
/*    */   public void setColspan(int colspan) {
/* 35 */     this.colspan = colspan;
/*    */   }
/*    */ 
/*    */   public StampElement getStampElement()
/*    */   {
/* 40 */     return this.stampElement;
/*    */   }
/*    */ 
/*    */   public void setStampElement(StampElement stampElement) {
/* 44 */     this.stampElement = stampElement;
/*    */   }
/*    */ 
/*    */   public Shape[] getShapes()
/*    */   {
/* 49 */     if (this.shapes == null) {
/* 50 */       synchronized (this) {
/* 51 */         if (this.shapeList != null) {
/* 52 */           this.shapes = new Shape[this.shapeList.size()];
/* 53 */           this.shapeList.toArray(this.shapes);
/*    */         }
/*    */       }
/*    */     }
/* 57 */     return this.shapes;
/*    */   }
/*    */ 
/*    */   public void addShape(Shape shape) {
/* 61 */     if (this.shapeList == null) {
/* 62 */       synchronized (this) {
/* 63 */         this.shapeList = new ArrayList();
/*    */       }
/*    */     }
/* 66 */     this.shapeList.add(shape);
/*    */   }
/*    */ }

/* Location:           X:\repository\com\yss\sofa\cml\cml-api\1.1.0\cml-api-1.1.0.jar
 * Qualified Name:     com.yss.sofa.cml.design.BaseCellElement
 * JD-Core Version:    0.6.0
 */